package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_cricket_upgrade", desc = "蛐蛐升级", autoSave = true, uploadCk = true)
public class LogCricketUpgrade extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "蛐蛐id")
    private int cricketId;

    @FieldTypeAnnotation(desc = "品质")
    private int quality;

    @FieldTypeAnnotation(desc = "晋升前等级")
    private int beforeTitle;

    @FieldTypeAnnotation(desc = "晋升前军衔")
    private int beforeLittleTitle;

    @FieldTypeAnnotation(desc = "晋升前血量")
    private long beforeHp;

    @FieldTypeAnnotation(desc = "晋升前攻击")
    private long beforeAtk;

    @FieldTypeAnnotation(desc = "晋升前气势")
    private long beforePower;

    @FieldTypeAnnotation(desc = "晋升前战力")
    private long beforeAbility;

    @FieldTypeAnnotation(desc = "晋升后等级")
    private int afterTitle;

    @FieldTypeAnnotation(desc = "晋升后军衔")
    private int afterLittleTitle;

    @FieldTypeAnnotation(desc = "晋升后血量")
    private long afterHp;

    @FieldTypeAnnotation(desc = "晋升后攻击")
    private long afterAtk;

    @FieldTypeAnnotation(desc = "晋升后气势")
    private long afterPower;

    @FieldTypeAnnotation(desc = "晋升后战力")
    private long afterAbility;

    @FieldTypeAnnotation(desc = "消耗的数量")
    private int costNum;

    @FieldTypeAnnotation(desc = "晋升奖励")
    private String reward;

    public LogCricketUpgrade(long userId, int cricketId, int quality, int beforeTitle, int beforeLittleTitle, long beforeHp, long beforeAtk, long beforePower, long beforeAbility, int afterTitle, int afterLittleTitle, long afterHp, long afterAtk, long afterPower, long afterAbility, int costNum, String reward) {
        this.userId = userId;
        this.cricketId = cricketId;
        this.quality = quality;
        this.beforeTitle = beforeTitle;
        this.beforeLittleTitle = beforeLittleTitle;
        this.beforeHp = beforeHp;
        this.beforeAtk = beforeAtk;
        this.beforePower = beforePower;
        this.beforeAbility = beforeAbility;
        this.afterTitle = afterTitle;
        this.afterLittleTitle = afterLittleTitle;
        this.afterHp = afterHp;
        this.afterAtk = afterAtk;
        this.afterPower = afterPower;
        this.afterAbility = afterAbility;
        this.costNum = costNum;
        this.reward = reward;
    }

    public long getUserId() {
        return userId;
    }

}
